#include "InParen.h"

InParen::InParen(Scope* pParentScope)
{
    m_eType=Scope::eScopeParen;
    m_pxParent = pParentScope;
	m_sScopeEnder = ")";
}

InParen::~InParen(void)
{
}

Scope* InParen::parse(Token& inToken, bool &bIsEndOfScope)
{
    Scope* pxScope = NULL;
    bIsEndOfScope=false;

    pxScope = Scope::parse(inToken, bIsEndOfScope);

	if(inToken.m_sValue == m_sScopeEnder)
    {
		bIsEndOfScope= true;
    }

    return pxScope;
}